from typing import Annotated

from fastapi import APIRouter, Depends
from starlette.requests import Request
from starlette.responses import HTMLResponse
from starlette.templating import Jinja2Templates

from dc_shop.database.services import BotSettingsService
from dc_shop.webapp.app.providers.stub import Stub

index_router = APIRouter()


@index_router.get("/", response_class=HTMLResponse)
@index_router.get("/index", response_class=HTMLResponse)
async def index(
    request: Request,
):
    templates = Jinja2Templates(directory="dc_shop/webapp/app/templates")

    return templates.TemplateResponse(
        "index.html",
        {"request": request},
    )
